package com.czk.repository;

import com.czk.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/11/9 22:19
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    /**
     * 通过hoscode查询hosp
     *
     * @param hoscode
     * @return
     */
    Hospital getHospitalByHoscode(String hoscode);

    /**
     * 通过医院名称模糊查询
     *
     * @param hosname
     * @return
     */
    List<Hospital> findHospitalByHosnameLike(String hosname);
}
